package au.com.identityconcepts.windowslive.sso;

import au.com.identityconcepts.windowslive.sso.ws.Marshall;
import au.com.identityconcepts.windowslive.sso.ws.Session;

public class SSOBean {
	// Initialize with random values
	private int sessionID;
	public Session session = null;

	public SSOBean() {
		try {
			this.session = new Session();			
		} catch (Exception e) {
			return;
		}
	}
	
	public synchronized void setSessionID(int sid) {
		sessionID = sid;				
	}
	
	public synchronized int getSessionID() {
		return sessionID;				
	}
	
	public String getSLT(String username) {	
		return this.session.GetSLT(username, 30);
	}	
}

